<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<c:url value="/resources/styles/springsource.css"/>" type="text/css"/>
		<title><spring:message code="welcome.title"/></title>
	</head>	
	<body>	
		<div id="main_wrapper">		
			<h2><spring:message code="my.preferences.title"/></h2	>			
			<form:form  commandName="myPreferences">
				<table style="width:70%;border:1px">	
					<tr>
						<td><spring:message code="my.preferences.language"/></td>
 						<td><form:select path="preferredLanguage">
 							<form:options items="${languages}" itemValue="langCode" itemLabel="langDescription" /> 
 							</form:select> 					
						</td>
					</tr>	
					<tr>
						<td><input type="submit" value="<spring:message code="my.preferences.save"/>"/>
						</td>
					</tr>	
				</table>	
			</form:form>		
		</div>
	</body>
</html>
	
